home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: question on borland c++ 3.1
- Date: Fri, 09 Feb 96 01:52:01 GMT
- Organization: none
- Message-ID: <823830721snz@genesis.demon.co.uk>
- References: <4f9c1o$aem@news2.widomaker.com>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <4f9c1o$aem@news2.widomaker.com>
- sgross@widomaker.com "Stephen Gross" writes:
-
- >I've been using bc 3.1 for a while now, and i was wondering if anyone can
- >tell me: is this a bug with the compiler? The following code:
- >
- >void flip()
- >{
- > asm {
- > cld
- > lds si,[dword ptr V_PAGE]
- > mov ax,0xa000
- > mov es,ax
- > mov di,0
- > mov cx,32000
- > rep movsw
- > lds si,[dword ptr V_PAGE]
- > mov ax,0
- > mov cx,32000
- > rep stosw
- > }
- >{
- >
- >it does not work,
-
- That is perfectly reasonable as far as the C language is concerned since
- it doens't define an asm keyword - your code simply isn't C. Your question
- is highly DOS/Borland C specific so post it to comp.os.msdos.programmer.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-